package com.microservice.salmon.db.entities;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "t_spec_group")
@Getter
@Setter
public class SpecificationsGroup {
    /**
     * 自增ID
     */
    @Id
    private Integer id;

    /**
     * 最后一级商品分类ID
     */
    @Column(name = "goods_cat_id")
    private Integer goodsCatId;

    /**
     * 商品分类路径
     */
    @Column(name = "goods_cat_path")
    private String goodsCatPath;

    /**
     * 规格分类名称
     */
    private String name;

    /**
     * 是否允许上传图片 0:不允许 1:允许
     */
    @Column(name = "is_allow_img")
    private Boolean isAllowImg;

    /**
     * 是否显示 1:是 0：否
     */
    @Column(name = "is_show")
    private Boolean isShow;

    /**
     * 排序号
     */
    @Column(name = "cat_sort")
    private Integer catSort;

    /**
     * 删除标志 1:有效 0:删除
     */
    @Column(name = "data_flag")
    private Boolean dataFlag;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

}